<?php
    @include_once("./general.php");
    $goodsId=isset($_GET["goodsId"])?$_GET["goodsId"]:0;
    if ($goodsId) {
        global $sqlStr;
        //查找该用户加入了那些商品进购物车
        $sqlStr="SELECT * FROM goods_detail WHERE goods_id='$goodsId'";
        echo json_encode(query($sqlStr));
    }
?>